From e0c77842c74c206a664bb090f0017f0d65340c06 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sat, 6 Mar 2010 13:31:42 +0000 Subject: [PATCH] xenstore: Resolve gcc4.5 type error Without this, gcc 4.5 complains with, error: case value '3' not in enumerated type 'const enum xs_perm_type' Signed-off-by: Charles Arnold --- tools/xenstore/xs_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/xenstore/xs_lib.c b/tools/xenstore/xs_lib.c index 45ca5df402..03a9ee4393 100644 --- a/tools/xenstore/xs_lib.c +++ b/tools/xenstore/xs_lib.c @@ -149,7 +149,7 @@ bool xs_strings_to_perms(struct xs_permissions *perms, unsigned int num, bool xs_perm_to_string(const struct xs_permissions *perm, char *buffer, size_t buf_len) { - switch (perm->perms) { + switch ((int)perm->perms) { case XS_PERM_WRITE: *buffer = 'w'; break; -- 2.30.2